package dimension2;

import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.util.LinkedList;

public class Circle {
	private int rayon;
	private Point center;
	
	
	
	public Circle(int rayon, Point center) {
		super();
		this.rayon = rayon;
		this.center = center;
	}


	public Point getCenter() {
		return center;
	}


	public void setCenter(Point center) {
		this.center = center;
	}


	public int getRayon() {
		return rayon;
	}


	public void setRayon(int rayon) {
		this.rayon = rayon;
	}



	
	public void draw (Graphics g){
		((Graphics2D) g).drawOval((int)this.center.getX()-rayon/2, (int)this.center.getY()-rayon/2, rayon, rayon);
		g.drawLine((int)this.center.getX(), (int)this.center.getY(), (int)this.center.getX(), (int)this.center.getY());
	}


	public void draw(byte[][] temp) {
		// TODO Auto-generated method stub
		
	}
	
	public String toString(){
		return "centre :" + center + " : rayon :" + rayon;
	}
}
